package com.baizhi.app.service.impl;

import com.baizhi.app.service.AppArticleService;
import com.baizhi.dao.ArticleDAO;
import com.baizhi.entity.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AppArticleServiceImpl implements AppArticleService {

    @Autowired
    private ArticleDAO articleDAO;

    @Override
    public List<Article> show() {
        return articleDAO.selectArticle();
    }
}
